.post-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.post-main {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.author-name:hover {
    text-decoration: underline;
}

.post-time {
    color: #999;
    font-size: 0.9rem;
}

.post-title {
    padding: 1.5rem;
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.post-media {
    width: 100%;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 600px;
}

.image-container {
    width: 100%;
}

.post-image {
    width: 100%;
    height: auto;
}

.post-content {
    padding: 1.5rem;
    line-height: 1.8;
    color: #333;
}

.post-actions {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background-color: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: #f5f5f5;
    color: #4CAF50;
}

.like-btn.liked {
    color: #f44336;
    animation: likeAnimation 1s ease;
}

/* 添加点赞图标样式 */
.like-icon {
    font-size: 1.2rem;
}

/* 点赞后的图标变化 */
.like-btn.liked .like-icon {
    transform: scale(1.2);
    color: #f44336;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.divider {
    border: none;
    border-top: 1px solid #eee;
}

.comments-section {
    padding: 1.5rem;
}

.comments-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.comment-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.current-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

#commentText {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    resize: none;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
}

.commenter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.commenter-name {
    font-weight: bold;
    color: #333;
}

.comment-time {
    color: #999;
    font-size: 0.8rem;
}

.comment-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.reply-btn,
.like-comment-btn {
    padding: 0.3rem 0.8rem;
    border: none;
    background-color: transparent;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.reply-btn:hover,
.like-comment-btn:hover {
    color: #4CAF50;
}

.no-comments {
    text-align: center;
    color: #999;
    padding: 2rem;
}

.sidebar {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: #333;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.related-post-item:hover {
    background-color: #f5f5f5;
}

.related-post-media {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-post-title {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.related-post-title:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .post-detail-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .video-container video {
        max-height: 400px;
    }
}